翻訳と辞書
Words near each other
・ Weight of the World (Harem Scarem album)
・ Weight of the World (Lemar song)
・ Weight of the World (Ringo Starr song)
・ Weight of the World (This Is Hell album)
・ Weight on bit
・ Weight pulling
・ Weight Stigma
・ Weight throw
・ Weight throw at the Olympics
・ Weight training
・ Weight transfer
・ Weight transfer (dance move)
・ Weight transfer (disambiguation)
・ Weight Watchers
・ Weight Wins
Weight-balanced tree
・ Weight-bearing
・ Weight-of-conflict conjecture
・ Weight-shift control
・ Weighted Airman Promotion System
・ Weighted arithmetic mean
・ Weighted average cost of capital
・ Weighted average cost of carbon
・ Weighted average return on assets
・ Weighted capitation formula
・ Weighted clothing
・ Weighted constraint satisfaction problem
・ Weighted context-free grammar
・ Weighted correlation network analysis
・ Weighted fair queueing


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Weight-balanced tree : ウィキペディア英語版
Weight-balanced tree

In computer science, weight-balanced binary trees (WBTs) are a type of self-balancing binary search trees that can be used to implement dynamic sets, dictionaries (maps) and sequences. These trees were introduced by Nievergelt and Reingold in the 1970s as trees of bounded balance, or BB() trees. Their more common name is due to Knuth.
Like other self-balancing trees, WBTs store bookkeeping information pertaining to balance in their nodes and perform rotations to restore balance when it is disturbed by insertion or deletion operations. Specifically, each node stores the size of the subtree rooted at the node, and the sizes of left and right subtrees are kept within some factor of each other. Unlike the balance information in AVL trees (which store the height of subtrees) and red-black trees (which store a fictional "color" bit), the bookkeeping information in a WBT is an actually useful property for applications: the number of elements in a tree is equal to the size of its root, and the size information is exactly the information needed to implement the operations of an order statistic tree, viz., getting the 'th largest element in a set or determining an element's index in sorted order.
Weight-balanced trees are popular in the functional programming community and are used to implement sets and maps in MIT Scheme, SLIB and implementations of Haskell.〔
==Description==
A weight-balanced tree is a binary search tree that stores the sizes of subtrees in the nodes. That is, a node has fields
* ''key'', of any ordered type
* ''value'' (optional, only for mappings)
* ''left'', ''right'', pointer to node
* ''size'', of type integer.
By definition, the size of a leaf (typically represented by a pointer) is zero. The size of an internal node is the sum of sizes of its two children, plus one (). Based on the size, one defines the weight as either equal to the size, or as .
Operations that modify the tree must make sure that the weight of the left and right subtrees of every node remain within some factor of each other, using the same rebalancing operations used in AVL trees: rotations and double rotations. Formally, node balance is defined as follows:
:A node is -weight-balanced if and .
Here, is a numerical parameter to be determined when implementing weight balanced trees. Lower values of produce "more balanced" trees, but not all values of are appropriate; Nievergelt and Reingold proved that
:\alpha < 1 - \frac} n = \frac \right)} = O(\log n)
The number of balancing operations required in a sequence of insertions and deletions is linear in , i.e., balancing takes a constant amount of overhead in an amortized sense.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Weight-balanced tree」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.